package com.benbi.shequapi.controller;

import com.benbi.shequapi.service.LiveinService;
import com.benbi.shequapi.utils.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/livein")
public class LiveinController {
    @Resource
    LiveinService liveinService;

    @RequestMapping("/getLive")
    public Result getLive(@RequestParam("r_pid") int pid){
        return liveinService.getLiveAddrByPid(pid);
    }
}
